package com.zx.evpop;
 
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
 
//@Document(collection="mongodbTestModel") //collection:集合名 类似于关系型数据里面的 tableName
@Document(collection="mongodbTestModel")
public class MongodbTestModel {
 
	@Id
	private String mid;
	private String name;
	private String age;
	
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "MongodbTestModel [mid=" + mid + ", name=" + name + ", age=" + age + "]";
	}
	
	
}